﻿@{
    ViewBag.Title = "创建Slider";
    Layout = "~/Views/Shared/_LayoutOfSecondPage.cshtml";
}

<script src="@Url.Content("~/Scripts/RongeJs/vanadium.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/RongeJs/CheckValue.js")" type="text/javascript"></script>

<div class="box_padding">
    <h3><i class="ui-icons"></i>Slider动画图片新闻</h3>
    <div class="box_top ui-icons"></div>
    <div class="box_bg">
      <div class="box_padding">
       <div class="border_line">
          @using (Html.BeginForm("SliderCreate","ImgNews",FormMethod.Post,new { enctype = "multipart/form-data" }))
            {
                //使用此控件会限制文件大小最大上传4M；可在Web.config中配置<httpRuntime executionTimeout="5400"
                // maxRequestLength="2048000" 文件大小  useFullyQualifiedRedirectUrl="false" />
                
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                  <tbody>
                    <tr>
                        <td class="tdName">新闻标题</td>
                        <td  class="tdData">
                           <input type="text" id="ImgTitle" name="ImgTitle" class=":required" />
                        </td>
                        <td class="tdName">新闻摘要</td>
                        <td class="tdData">
                           <textarea id="Brief" name="Brief" class=":min_length;1 :max_length;30"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdName">
                          上传Slider图片（940px*360px）
                        </td>
                        <td  class="tdData">
                          <input type="file" name="ImgUrl" id="ImgUrl" class=":required" />
                        </td>
                        <td class="tdName">新闻链接地址</td>
                        <td class="tdData">
                           @Html.TextBox("NewsUrl")
                           <p>例如："http://www.Ronge.com/news/id"</p>
                        </td>
                    </tr>
                   </tbody>
                 </table>
                <input type="submit" class="Button1 ui-icons" id="Submit" value="创建" title="创建" />
            }           
        
       </div>
      </div>
    </div>
    <div class="box_down ui-icons"></div>
</div>
<div class="line_top"></div>
